world.setBlockId(origin, blockID.STONE); // this will set the block at origin to stone
world.setBlockIdAndMetadata(origin, blockID.WOOL, 14); // this will set the block at origin to red wool
origin.y += 1;
world.setBlockId(origin, blockID.STONE); // this will set the block one block above the origin to stone
player.fillInventory(blockID.DIRT, 0); // this will fill up the players inventory with dirt.
customstuff.loadScript('123.script'); // this will execute the '123.script' in the customStuffFunctions folder.
if (world.getBlockId(origin) == blockID.DIRT)
{
world.setBlockId(origin, blockID.STONE);
}
// this will set the block at origin to stone if the block at origin is a dirt block.
[additional notes]